(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
__(__(X, Y), Z) → __(X, __(Y, Z))
__(X, nil) → X
__(nil, X) → X
and(tt, X) → activate(X)
isNePal(__(I, __(P, I))) → tt
activate(X) → X
Rewrite Strategy: INNERMOST
(1) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)
Converted CpxTRS to CDT
(2) Obligation:
Complexity Dependency Tuples Problem
Rules:
__(__(z0, z1), z2) → __(z0, __(z1, z2))
__(z0, nil) → z0
__(nil, z0) → z0
and(tt, z0) → activate(z0)
isNePal(__(z0, __(z1, z0))) → tt
activate(z0) → z0
Tuples:
__'(__(z0, z1), z2) → c(__'(z0, __(z1, z2)), __'(z1, z2))
AND(tt, z0) → c3(ACTIVATE(z0))
S tuples:
__'(__(z0, z1), z2) → c(__'(z0, __(z1, z2)), __'(z1, z2))
AND(tt, z0) → c3(ACTIVATE(z0))
K tuples:none
Defined Rule Symbols:
__, and, isNePal, activate
Defined Pair Symbols:
__', AND
Compound Symbols:
c, c3
(3) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID) transformation)
Removed 1 trailing nodes:
AND(tt, z0) → c3(ACTIVATE(z0))
(4) Obligation:
Complexity Dependency Tuples Problem
Rules:
__(__(z0, z1), z2) → __(z0, __(z1, z2))
__(z0, nil) → z0
__(nil, z0) → z0
and(tt, z0) → activate(z0)
isNePal(__(z0, __(z1, z0))) → tt
activate(z0) → z0
Tuples:
__'(__(z0, z1), z2) → c(__'(z0, __(z1, z2)), __'(z1, z2))
S tuples:
__'(__(z0, z1), z2) → c(__'(z0, __(z1, z2)), __'(z1, z2))
K tuples:none
Defined Rule Symbols:
__, and, isNePal, activate
Defined Pair Symbols:
__'
Compound Symbols:
c
(5) CdtPolyRedPairProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
__'(__(z0, z1), z2) → c(__'(z0, __(z1, z2)), __'(z1, z2))
We considered the (Usable) Rules:
__(__(z0, z1), z2) → __(z0, __(z1, z2))
__(z0, nil) → z0
And the Tuples:
__'(__(z0, z1), z2) → c(__'(z0, __(z1, z2)), __'(z1, z2))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(__(x1, x2)) = [4] + [2]x1 + [4]x2
POL(__'(x1, x2)) = [5] + [4]x1
POL(c(x1, x2)) = x1 + x2
POL(nil) = 0
(6) Obligation:
Complexity Dependency Tuples Problem
Rules:
__(__(z0, z1), z2) → __(z0, __(z1, z2))
__(z0, nil) → z0
__(nil, z0) → z0
and(tt, z0) → activate(z0)
isNePal(__(z0, __(z1, z0))) → tt
activate(z0) → z0
Tuples:
__'(__(z0, z1), z2) → c(__'(z0, __(z1, z2)), __'(z1, z2))
S tuples:none
K tuples:
__'(__(z0, z1), z2) → c(__'(z0, __(z1, z2)), __'(z1, z2))
Defined Rule Symbols:
__, and, isNePal, activate
Defined Pair Symbols:
__'
Compound Symbols:
c
(7) SIsEmptyProof (EQUIVALENT transformation)
The set S is empty
(8) BOUNDS(O(1), O(1))